package com.leetcode.offer;

import java.util.LinkedList;
import java.util.Queue;

public class offer12 {

    public boolean exist(char[][] board, String word) {
        char[] words = word.toCharArray();
        int rows = board.length;
        int cols = board[0].length;

        for (int i = 0; i < rows; i++) {
            for (int j = 0; j < cols; j++) {
                for (int k = 0; k < words.length; k++) {
                    if (board[i][j] == words[0]) {
                        Queue<Character> queue = new LinkedList<>();
                        queue.add(board[i][j]);
                        while (!queue.isEmpty()) {




                        }
                    }
                }

            }
        }



        return true;
    }

}
